<?php
    require_once(SYS_CONFIG . '/message.php');
    
    if (is_dir(SYS_LIB . '/message/connector/' . MSG_CONNECTOR)){
        if (file_exists(SYS_LIB . '/message/connector/' . MSG_CONNECTOR . '/main.php')){
            require_once(SYS_LIB . '/message/connector/' . MSG_CONNECTOR . '/main.php');
        }
        else{
            report_error('Message connector cannot be loaded!');
        }
    }
    else{
        report_error('Message connector not exist!');
    }